/**
 * 首页
 * @type {string} GET
 * @param {string} { }
 */
export function list(data) {
	return new Promise(resolve => {
		uni.$u.http.get("/applet/carousel/list", data).then(info => {
			resolve(info.result)
		})
	})
}

/**
 * RSA加密
 * @type {string} GET
 * @param {string} { }
 */
export function jsonToRSA(data) {
	return new Promise(resolve => {
		uni.$u.http.get("/applet/personal/center/jsonToRSA", data).then(info => {
			resolve(info.result)
		})
	})
}

export function jscode2session(data) {
	return new Promise(resolve => {
		uni.$u.http.get("https://api.weixin.qq.com/sns/jscode2session", data).then(info => {
			resolve(info)
		})
	})
}
/**
 * 标签列表
 * @type {string} GET
 * @param {string} { }
 */
export function babelList(data) {
	return new Promise(resolve => {
		uni.$u.http.get("/applet/babel/babelList", data).then(info => {
			resolve(info)
		})
	})
}
/**
 * 标签相关文章
 * @type {string} GET
 * @param {string} { labelName，openId，pageNo，pageSize}
 */
export function recommendByLabel(data) {
	return new Promise(resolve => {
		uni.$u.http.get("/applet/articles/recommendByLabel", data).then(info => {
			resolve(info)
		})
	})
}